<cfcomponent output="false">

	<cffunction name="init">
		<cfargument name="bundleName">
		<cfargument name="fkey" hint="The foreign key of the item this discussion app is dealing with.">
		<cfargument name="site">
		<cfscript>
		VARIABLES.bundleName = ARGUMENTS.bundleName;
		VARIABLES._api = getAPI(site:ARGUMENTS.site);
		VARIABLES.consumer_bundle = _api.bundle.get_name();
		VARIABLES.fkey = ARGUMENTS.fkey;
		return this;
		</cfscript>
	</cffunction>
	
	<cffunction name="getApi" access="private" output="false">
		<cfargument name="site">
		<cfset VARIABLES._api = {
			site = ARGUMENTS.site,
			bundle = APPLICATION._bundle[VARIABLES.bundleName],
			data = APPLICATION._site.data
		}>
		<cfreturn VARIABLES._api>
	</cffunction>
	
</cfcomponent>